<include file="public@header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Admin/index')}">个人菜单列表</a></li>
        <li class="active"><a href="{:url('Admin/add')}">添加个人菜单</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Admin/addPost')}">
        <div class="form-group">
            <label for="input-name" class="col-sm-2 control-label">昵称</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-name" name="name">
            </div>
        </div>

        <div class="form-group">
            <label for="input-image" class="col-sm-2 control-label">头像<span class="form-required">*</span></label>
            <div class="col-md-6 col-sm-10">
                <input id="photo-1" type="hidden" name="image" >
                <input id="photo-1-name" type="text" name="image" title="图片名称" class="form-control" readonly disabled>
            </div>
        </div>
        <div class="form-group">
            <label for="input-image" class="col-sm-2 control-label"></label>
            <div class="col-md-6 col-sm-10">
                <img id="photo-1-preview" style="width: 100px;">
                <div>
                    <a href="javascript:uploadOneImage('图片上传','#photo-1');" class="btn btn-primary">上传</a>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label for="input-mobile" class="col-sm-2 control-label">手机号<span class="form-required">*</span></label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-mobile" name="mobile">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">添加</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">取消</a>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
    var editorcontent = new baidu.editor.ui.Editor();
    editorcontent.render('content');
</script>
</body>
</html>